From 94850192ba254eb54d1faaebcc69cf3fc4cfa274 Mon Sep 17 00:00:00 2001 From: "Ian.Campbell@xensource.com" Date: Mon, 12 Jun 2006 18:23:42 +0100 Subject: [PATCH] Initialize the entire hypercall page when running a ring0 kernel Signed-off-by: Ian Campbell --- xen/arch/x86/x86_32/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_32/traps.c b/xen/arch/x86/x86_32/traps.c index 6fce183a17..eb5beb44ad 100644 --- a/xen/arch/x86/x86_32/traps.c +++ b/xen/arch/x86/x86_32/traps.c @@ -460,7 +460,7 @@ static void hypercall_page_initialise_ring0_kernel(void *hypercall_page) /* Fill in all the transfer points with template machine code. */ - for ( i = 0; i < NR_hypercalls; i++ ) + for ( i = 0; i < (PAGE_SIZE / 32); i++ ) { p = (char *)(hypercall_page + (i * 32)); -- 2.30.2